from django.urls import path
from django.conf.urls import url,include

from . import views
app_name = 'wyh0282'
urlpatterns = [
    #ajax测试
    path('test/', views.test, name='test'),

    path('login/',views.login,name = 'login'),
    path('loginout/', views.loginout, name='loginout'),
    #iframe的页面
    path('index/',views.index,name = 'index'),
    path('livingExample/',views.livingExample,name = 'livingExample'),
    path('project/projectLivingExample/',views.projectLivingExample,name = 'projectLivingExample'),

    #实例的Json数据
    path('serverJson/',views.server_json,name = 'server_json'),
    #实例操作
    path('mServerLists/',views.mServerLists,name = 'mServerLists'),
    #启动实例
    path('serverStart/',views.serverStart,name = 'serverStart'),
    #结束实例
    path('serverEnd/',views.serverEnd,name = 'serverEnd'),
    #重启实例
    path('reServerStart/',views.reServerStart,name = 'reServerStart'),
    #暂停实例
    path('serverSuspend/',views.serverSuspend,name = 'serverSuspend'),
    #取消暂停实例
    path('noServerSuspend/',views.noServerSuspend,name = 'noServerSuspend'),
    #挂起实例
    path('serverHang/',views.serverHang,name = 'serverHang'),
    #挂起恢复实例
    path('resumePendingServer/',views.resumePendingServer,name = 'resumePendingServer'),
    #创建实例快照的html页面
    path('serverSnapshotHtml/',views.serverSnapshotHtml,name = 'serverSnapshotHtml'),
    #创建实例快照
    path('serverSnapshot/',views.serverSnapshot,name = 'serverSnapshot'),



    #实例的控制台
    path('serverConsole/',views.serverConsole,name = 'serverConsole'),
    #某个实例的详细信息
    path('serverMessage/',views.serverMessage,name = 'serverMessage'),
    #实例的控制台
    path('operationConsole/',views.operationConsole,name = 'operationConsole'),


    #身份管理下的项目
    path('mProjectLists/',views.mProjectLists,name = 'mProjectLists'),
    #弹出页面
    path('projectAdd/',views.projectAdd,name = 'projectAdd'),
    #删除操作
    path('projectDelete/',views.projectDelete,name = 'projectDelete'),
    #创建项目
    path('projectCreate/',views.projectCreate,name = 'projectCreate'),
    #编辑项目
    path('projectEdit/',views.projectEdit,name = 'projectEdit'),
    #更新项目的数据
    path('projectUpdate/',views.projectUpdate,name = 'projectUpdate'),
    #显示某个项目的信息
    path('projectMessage/',views.projectMessage,name = 'projectMessage'),

    #身份管理下的角色
    path('mRoleLists/',views.mRoleLists,name = 'mRoleLists'),
    #弹出页面
    path('roleAdd/',views.roleAdd,name = 'roleAdd'),
    #删除角色
    path('roleDelete/',views.roleDelete,name = 'roleDelete'),
    #创建角色
    path('roleCreate/',views.roleCreate,name = 'roleCreate'),
    #编辑角色
    path('roleEdit/',views.roleEdit,name = 'roleEdit'),
    #更新角色的数据
    path('roleUpdate/',views.roleUpdate,name = 'roleUpdate'),
    #身份管理的角色数据
    path('roleJson/',views.role_json,name = 'role_json'),


    #身份管理下的组
    path('mGroupLists/',views.mGroupLists,name = 'mGroupLists'),
    #弹出页面
    path('groupAdd/',views.groupAdd,name = 'groupAdd'),
    #删除角色
    path('groupDelete/',views.groupDelete,name = 'groupDelete'),
    #创建组
    path('groupCreate/',views.groupCreate,name = 'groupCreate'),
    #编辑组
    path('groupEdit/',views.groupEdit,name = 'groupEdit'),
    #更新组的数据
    path('groupUpdate/',views.groupUpdate,name = 'groupUpdate'),
    #身份管理的组数据
    path('groupJson/',views.group_json,name = 'group_json'),
    #组里面的用户管理
    path('manageUser/',views.manageUser,name = 'manageUser'),
    #组下面用户数据
    path('groupUserJson/',views.groupUserJson,name = 'groupUserJson'),
    #展示没有加入组的用户json数据
    path('noGroupUserJson/',views.noGroupUserJson,name = 'noGroupUserJson'),
    #展示没有加入组的用户页面
    path('noGroupUser/',views.noGroupUser,name = 'noGroupUser'),
    #组里面加入用户
    path('groupAddUser/',views.groupAddUser,name = 'groupAddUser'),
    #组里面删除用户
    path('groupDeleteUser/',views.groupDeleteUser,name = 'groupDeleteUser'),


    #身份管理下的用户
    path('mUserLists/',views.mUserLists,name = 'mUserLists'),
    #弹出页面
    path('userAdd/',views.userAdd,name = 'userAdd'),
    #删除用户
    path('userDelete/',views.userDelete,name = 'userDelete'),
    #创建用户
    path('userCreate/',views.userCreate,name = 'userCreate'),
    #编辑用户
    path('userEdit/',views.userEdit,name = 'userEdit'),
    #更新组的用户
    path('userUpdate/',views.userUpdate,name = 'userUpdate'),
    #身份管理的用户数据
    path('userJson/',views.user_json,name = 'user_json'),
    #显示某个用户的信息
    path('userMessage/',views.userMessage,name = 'userMessage'),

    #数据表格的json数据
    path('indexData/',views.indexData,name = 'indexData'),
    path('livingExampleDatas/',views.livingExampleDatas,name = 'livingExampleDatas'),
    #身份管理的项目数据
    path('projectJson/',views.project_json,name = 'project_json'),

    #实例启动
    path('serverrun/<serverid>/', views.server_run, name='serverrun'),

    #身份管理的用户数据
    path('imagesJson/',views.images_json,name = 'images_json'),
    #镜像
    path('mImagesLists/', views.mImagesLists, name='mImagesLists'),
    # 弹出页面
    path('imagesAdd/', views.imagesAdd, name='imagesAdd'),
    # 上传映像页面
    path('imagesUp/', views.imagesUp, name='imagesUp'),
    # 真正上传映像
    path('imageUp1/', views.imageUp1, name='imageUp1'),
    # 删除操作
    path('imagesDelete/', views.imagesDelete, name='imagesDelete'),
    # 创建镜像
    path('imagesCreate/', views.imagesCreate, name='imagesCreate'),
    # 编辑镜像
    path('imagesEdit/', views.imagesEdit, name='imagesEdit'),
    # 更新镜像
    path('imagesUpdate/', views.imagesUpdate, name='imagesUpdate'),
    # 显示镜像
    path('showImage/', views.showImage, name='showImage'),

    #flavor JSON数据
    path('flavorJson/',views.flavor_json,name = 'flavor_json'),
    #镜像
    path('mFlavorLists/', views.mFlavorLists, name='mImagesLists'),

    path('project/',views.project_list,name = 'project'),
    path('projectlist/', views.projectlist,name='projectlist'),
    path('project_deleteid/<id>/',views.project_delete,name='project_deleteid'),
    path('projectcreate/', views.projects_creates, name='projects_creates'),
    path('project_detail/<projectid>/', views.project_detail, name='project_listid'),
    path('project_update/<projectupdateid>/', views.project_update, name='project_updateid'),
    path('userlist/', views.user_list, name='userlist'),
    path('user_deleteid/<userid>/', views.user_delete, name='user_deleteid'),
    path('usercreate/',views.user_create,name='user_create'),
    path('user_detail/<userid>/', views.user_detail, name='user_listid'),
    path('user_update/<userid>/', views.user_update, name='user_updateid'),
    path('grouplist/', views.group_list, name='grouplist'),
    path('group_update/<groupid>',views.group_update,name='group_listid'),
    path('groupcreate/', views.group_create, name='group_create'),
    path('group_delete/<groupid>',views.group_delete,name='group_deleteid'),
    path('group_user/<groupid>/', views.group_user, name='group_userid'),
    path('group_users/<id>/', views.group_add, name='group_adduserid'),
    path('group_adduser/<id>/', views.group_users, name='group_adduser'),
    path('group_deleteuser/<id>/', views.group_deleteuser, name='group_deleteuser'),
    path('rolelist/', views.role_list, name='rolelist'),
    path('rolecreate/', views.role_create, name='role_create'),
    path('role_delete/<id>/', views.role_delete, name='role_deleteid'),
    path('role_update/<id>/', views.role_update, name='role_updateid'),
    path('flavorlist/', views.flavors_list, name='flavorlist'),
    path('flavordetail/<id>/', views.flavors_detail, name='flavordetail'),
    path('serverlist/', views.server_list, name='serverlist'),
    path('imagelist/', views.image_list, name='image_list'),
    path('listflavor/<imageid>/', views.list_flavor, name='listflavor'),
    path('servercreate/<flavorid>/', views.server_create, name='server_create'),
    path('serverdelete/<serverid>/', views.server_delete, name='server_delete'),
    path('serverdetail/<serverid>/', views.server_detail, name='serverdetail'),
    path('serveron/<serverid>/', views.server_on, name='serveron'),
    path('serverestart/<serverid>/', views.server_restart, name='serverestart'),
    path('serverstop/<serverid>/', views.server_stop, name='serverstop'),
    path('serverunstop/<serverid>/', views.server_unstop, name='serverunstop'),
    path('serverhang/<serverid>/', views.server_hang, name='serverhang'),
    path('serverehang/<serverid>/', views.server_rehang, name='serverrehang'),
    path('shotcreate/<serverid>/', views.shot_create, name='shotcreate'),
    path('serveroff/<serverid>/', views.server_off, name='serveroff'),
    path('imagelists/', views.image_lists, name='image_lists'),
    path('imagecreate/', views.image_creates, name='image_create'),
    path('imagefile/<imageid>/', views.image_file, name='image_fileid'),
    path('imagedetail/<imageid>/', views.image_detail, name='image_tailid'),
    path('imagedelete/<imageid>/', views.image_delete, name='image_deleteid'),
]